<?php
include __DIR__ . "/config/cors.php";
session_start();
if(isset($_COOKIE)){
    setcookie("username",null,time()-60*60*24*7,"/","www.dlrb.com",false,false);
    setcookie("role",null,time()-60*60*24*7,"/","www.dlrb.com",false,false);
}
session_destroy();

echo json_encode([
    "code" => 200,
    "msg" => "退出成功",
]);
?>